/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package btracker;

import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;


/**
 *
 * @author Leila
 */
class About extends JWindow
{
    private static JFrame  frame;


    public static void Splash() throws NullPointerException, IllegalArgumentException
    {
       frame = new JFrame();
      frame.setUndecorated(true);
        JLabel l = new JLabel(new ImageIcon("bTSplash.png"));
         
  
frame.getContentPane().add(l, BorderLayout.CENTER);
 // frame.setContentPane(l);
      
        
      
        
        
        
        Dimension screenSize =
          Toolkit.getDefaultToolkit().getScreenSize();
       
        frame.setSize(700, 430);
       
        frame.setLocationRelativeTo(null);
       
        frame.addMouseListener(new MouseAdapter()

            {
                public void mousePressed(MouseEvent e)
                {
                    frame.setVisible(false);
                    frame.dispose();

                try {
                    Login.LoginGUI();
                } catch (ClassNotFoundException ex) {
                    Logger.getLogger(About.class.getName()).log(Level.SEVERE, null, ex);
                } catch (InterruptedException ex) {
                    Logger.getLogger(About.class.getName()).log(Level.SEVERE, null, ex);
                }
                }
            });
              frame.setVisible(true);






    }
      public static void timer() throws InterruptedException{
             Thread.sleep(500);
             frame.setVisible(false);
                    frame.dispose();
        }
}




